/*
 * @Author: your name
 * @Date: 2021-04-13 10:21:41
 * @LastEditTime: 2021-04-13 10:21:41
 * @LastEditors: your name
 * @Description: In User Settings Edit
 * @FilePath: \学习笔记\TypeScript笔记\20模块系统\math.ts
 */
function add(...args: number[]): number {
    let sum: number = 0;
    sum = args.reduce(function (pre, cur) {
        return pre + cur
    });
    return sum;
}
export {add}